/**
 * HTML 编辑器
 * @require zh-CN 国际化语言包：简体中文
 * @date Mar 21, 2016 21:46:09 PM
 * @author hllian
 */
var __allItems=['source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
        'anchor', 'link', 'unlink', '|', 'about'];
var __myItems=['source', '|', 'undo', 'redo', '|', 'preview',  'cut', 'copy', 'paste',
    'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
    'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'clearhtml', 'quickformat','fullscreen', '/',
    'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
    'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image','multiimage',  'table', 'hr', 'link', 'unlink']
define(["zh-CN"], function($zh_CN) {
	var editor = {};
	editor.create = function(selector) {
		return $zh_CN.create(selector, {
			width : "100%",
			resizeType : 1,
			themeType : 'simple',
			allowPreviewEmoticons : false,
			allowImageUpload : true,
			uploadJson : "/wechat/image/upload",
			allowFileManager : false,
			imageTabIndex : 1,
			items : __myItems
		});
	};
	return editor;
});